<?php

/**
 * AreaModel
 *  
 * @author Administrator
 * @version 
 */

require_once 'Zend/Db/Table/Abstract.php';
require_once 'Zend/Config/Ini.php';
class Model_Tables_T extends Zend_Db_Table_Abstract {
	/**
	 * The default table name 
	 */
	protected $_name = 't';
    public function getFieldsList($tb)
    {
		$db = $this->getAdapter();		
		$sql = "show full fields from `".$tb."`";
		$result = $db->query($sql);
		$rows = $result->fetchAll();
		return $rows;
    }
    public function getName()
    {
    	return $this->_name;
    }

}
